package easy;

public class PalindromeNumber {
    public boolean isPalindrome(int x) {
        int reverse = 0;
        int def = x;
        while(x!=0){
            int y = x%10;
            reverse = reverse*10 +y;
            x/=10;
        }
        if(reverse==def && reverse>=0){
            return true;
        }else{
            return false;
        }
    }
}